<template>
  <div></div>
</template>
<script setup>
import { onBeforeMount } from "vue";
import Cookies from "js-cookie";
import { loginRedirect } from "@/utils/auth";

onBeforeMount(() => {
  const redirect = Cookies.get(loginRedirect);
  if (redirect) {
    Cookies.remove(loginRedirect);
    window.location.href = redirect;
  } else {
    window.location.href = "/";
  }
});
</script>

<style scoped lang="scss"></style>
